package string;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "ohMyGod,我打你妈";
        line = line.replaceAll("(打||你妈)+","*");
        System.out.println(line);
    }
}
